package com.five.mapper;

import com.five.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
     List<Comment> selectByParentId(Long parentId);

     void insert(Comment comment);

     List<Comment> selectTopComments(Long novelId);

     Comment selectById(Long parentId);

     void updateById(Comment comment);

     List<Comment> selectByLogininfoId(Long id);
}